package com.fy.market.persistent.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 抽奖活动商品表
 * @author fwq
 * @date 2025-10-11
 * @desc 抽奖活动商品表
 * @TableName: raffle_activity_sku
 */
@Data
@TableName("raffle_activity_sku")
public class RaffleActivitySku implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品sku - 把每一个组合当做一个商品
     */
    @TableField("sku")
    private Integer sku;

    /**
     * 活动ID
     */
    @TableField("activity_id")
    private Integer activityId;

    /**
     * 活动个人参与次数ID
     */
    @TableField("activity_count_id")
    private Integer activityCountId;

    /**
     * 商品库存
     */
    @TableField("stock_count")
    private Integer stockCount;

    /**
     * 剩余库存
     */
    @TableField("stock_count_surplus")
    private Integer stockCountSurplus;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
}
